import Vue from 'vue'
import Router from 'vue-router'
import layout from  '../layout/index'
import home from '../views/home/index'
import mall from '../views/mall/index'
import user from '../views/user/index'
import login  from '../views/login/index'
// const router = createRouter({})
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/layout',
      name:'layout',
      component:layout,
      // children:[
        // {
        // path:'/home',
        // name:'home',
        // component:home
        // },
        // {
        //   path:'/mall',
        //   name:'mall',
        //   component:mall
        //   },
        //   {
        //     path:'/user',
        //     name:'user',
        //     component:user
        //     },
    // ]
    },
    {
      path:'/',
      name:'login',
      component:login
    }
   
  ]
})

 